#include "environmentalknowledge.h"

namespace IAlib
{
    EnvironmentalKnowledge::EnvironmentalKnowledge()
    {
        IAlib::Knowledges::setType(IAlib::Knowledges::EnvironmentalKnowledge);
        IAlib::Knowledges::setLastCheck(0);
    }
    EnvironmentalKnowledge::EnvironmentalKnowledge(const EnvironmentalKnowledge& knowledge)
    {
        if (knowledge.getType() == IAlib::Knowledges::EnvironmentalKnowledge)
        {
            IAlib::Knowledges::setType(IAlib::Knowledges::EnvironmentalKnowledge);
            m_id = knowledge.m_id;
            m_data = knowledge.m_data;
            m_env_type = knowledge.m_env_type;
            m_state = knowledge.m_state;
        }
        else
        {
            IAlib::Knowledges::setType(IAlib::Knowledges::EnvironmentalKnowledge);
            IAlib::Knowledges::setLastCheck(0);
        }
    }
    QByteArray EnvironmentalKnowledge::toByteArray() const
    {
        QByteArray array;
        return array;
    }
    void EnvironmentalKnowledge::fromByteArray(QByteArray &byte_array)
    {

    }
}
